package com.atguigu.agent.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Generated;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("chat_messages")
//会自动的创建在数据库下的chat_messages集合
public class ChatMessages {
     //唯一标识，映射到 MongoDB 文档的 _id 字段
    @Id
    private ObjectId messageId;
    //存储当前聊天记录列表的json字符串
    private String content;

    //聊天记忆的id
    private String memoryId;




}

